package com.java2104.mapper;

import com.java2104.entity.RCAttendance;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RCAttendanceMapper {

    @Insert("insert into rc_class_attendance value(null, now(), #{rcClass.id}, #{attendancePersonNum}," +
            " #{absencePersonNum}, #{attendanceRate}, #{rcUser.id}, #{remark})")
    int insert(RCAttendance attendance);

    List<RCAttendance> findList(int classId, int userId);
}
